package com.twb.auth.entity.twbOrganization;

import java.io.Serializable;

import org.apache.ibatis.type.JdbcType;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.twb.core.base.entity.BaseEntity;

/**
 * <p>
 * 机构信息
 * </p>
 *
 * @author DSY
 * @since 2018-10-24
 */
@TableName(value = "twb_organization")
public class TwbOrganization extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 编号
	 */
	@TableId(value="id",type=IdType.ASSIGN_UUID)
	private String id;

	/**
	 * 父级编码
	 */
	@TableField(value="parent_org_id",jdbcType = JdbcType.VARCHAR)
	private String parentOrgId;

	/** 查询KEY */
	@TableField(value="search_key",jdbcType = JdbcType.LONGVARCHAR)
	private String searchKey;

	/**
	 * 机构编码
	 */
	@TableField(value="code",jdbcType = JdbcType.VARCHAR)
	private String code;

	/**
	 * 机构名称
	 */
	@TableField(value="name",jdbcType = JdbcType.VARCHAR)
	private String name;

	/**
	 * 机构图标
	 */
	@TableField(value="icon_cls",jdbcType = JdbcType.VARCHAR)
	private String iconCls;

	/**
	 * 机构地址
	 */
	@TableField(value="address",jdbcType = JdbcType.VARCHAR)
	private String address;

	/**
	 * 顺序
	 */
	@TableField(value="org_seq",jdbcType = JdbcType.INTEGER)
	private Integer orgSeq;

	/**
	 * 机构类型
	 */
	@TableField(value="org_type",jdbcType = JdbcType.VARCHAR)
	private String orgType;
	/**
	 * 租户ID
	 */
	@TableField(value="tenant_id",jdbcType = JdbcType.VARCHAR)
	private String tenantId;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getParentOrgId() {
		return parentOrgId;
	}

	public void setParentOrgId(String parentOrgId) {
		this.parentOrgId = parentOrgId;
	}

	/** 查询KEY */
	public String getSearchKey() {
		return searchKey;
	}

	/** 查询KEY */
	public void setSearchKey(String searchKey) {
		this.searchKey = searchKey;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getOrgSeq() {
		return orgSeq;
	}

	public void setOrgSeq(Integer orgSeq) {
		this.orgSeq = orgSeq;
	}

	public String getOrgType() {
		return orgType;
	}

	public void setOrgType(String orgType) {
		this.orgType = orgType;
	}

	public String getTenantId() {
		return tenantId;
	}

	public void setTenantId(String tenantId) {
		this.tenantId = tenantId;
	}

	@Override
	public String toString() {
		return "TwbOrganization{" + "id=" + id + ", parentOrgId=" + parentOrgId + ", code=" + code + ", name=" + name
				+ ", iconCls=" + iconCls + ", address=" + address + ", orgSeq=" + orgSeq + ", orgType=" + orgType
				+ ", tenantId=" + tenantId + ", creatorId=" + creatorId + ", creator=" + creator + ", updaterId=" + updaterId
				+ ", updater=" + updater + ", createDate=" + createDate + ", updateDate=" + updateDate + ", isdel="
				+ isdel + "}";
	}
}
